<template>
  <div id="app">
    <el-container>
      <el-header class="header">
        <h1>Vue3 Monorepo - Admin</h1>
        <el-menu mode="horizontal" router>
          <el-menu-item index="/">首页</el-menu-item>
          <el-menu-item index="/dashboard">仪表板</el-menu-item>
          <el-menu-item index="/users">用户管理</el-menu-item>
        </el-menu>
      </el-header>
      
      <el-main class="main">
        <router-view />
      </el-main>
      
      <el-footer class="footer">
        <p>&copy; 2024 Vue3 Monorepo Admin</p>
      </el-footer>
    </el-container>
  </div>
</template>

<script setup>
// 使用公共组件和工具
import { BaseButton } from '@mo/components'
import { useLocalStorage } from '@mo/composables'
</script>

<style scoped>
.header {
  background: #409eff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.main {
  min-height: 60vh;
  padding: 2rem;
}

.footer {
  background: #f5f5f5;
  text-align: center;
  padding: 1rem;
}
</style> 